using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Citie : MonoBehaviour
{
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.layer == 8)
        {
            CustomMessage cm = new CustomMessage(MsgType.citie);
            cm.send();
            Destroy(this.gameObject);
        }
    }
}